/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package seso;

import java.awt.Graphics;

/**
 *
 * @author Administrator
 */
public class RNavigatorNextButton extends javax.swing.JButton {

    private boolean isFirstTime = true;

    public RNavigatorNextButton() {
        setSize(88, 28);
        setPreferredSize(new java.awt.Dimension(88, 28));

        setBorder(null);
        setBorderPainted(false);
        setContentAreaFilled(false);
        setFocusPainted(false);
        setFocusable(false);
    }


    @Override
    protected void paintComponent(Graphics g) {
        if (isFirstTime  || java.beans.Beans.isDesignTime()) {
            isFirstTime = false;
            setText("");
            setIcon(Util.getUserImageIcon("NavNextIcon.png"));
            setRolloverIcon(Util.getUserImageIcon("NavNextRover.png"));
            setPressedIcon(Util.getUserImageIcon("NavNextPressed.png"));
        }        
        super.paintComponent(g);
    }
    

}
